package com.fifth.commodity.service;

import com.fifth.commodity.vo.BrandStateVo;
import com.fifth.commodity.vo.BrandVo;
import com.fifth.commodity.vo.StateVo;
import com.fifth.common.pojo.dto.CommonResult;
import com.fifth.common.pojo.entity.Brand;

public interface BrandService {
    //查询所有
    CommonResult selectAll(Brand brand);
    //添加
    CommonResult insertBrand(Brand brand);

    CommonResult updateById(Brand brand);

    /**
     * 根据条件分页查询所有品牌
     * @param pageCurrent
     * @param pageSize
     * @param brandVo
     * @return
     */
    CommonResult findBrandsWithCondiction(Integer pageCurrent, Integer pageSize, BrandVo brandVo);

    /**
     * 查询所有品牌
     * @return
     */
    CommonResult findAllBrands();

    /**
     * 根据id逻辑删除
     * @param id
     * @return
     */
    CommonResult deleteBrand(Integer id);

    /**
     * 修改审核状态
     * @param brandStateVo
     * @return
     */
    CommonResult updateState(BrandStateVo brandStateVo);

    /**
     * 页面加载查询所有品牌
     * @return
     */
    CommonResult selectAllBrand();


}
